<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<script type="text/javascript">
			function del(){
				var _uid=uid.value;
				var xhr=new XMLHttpRequest();
				xhr.open("delete",`/pro/v1/del/${_uid}`,true);
				xhr.onreadystatechange=function(){
					if(xhr.readyState==4&&xhr.status==200){
						var r=xhr.responseText;
						if(r==1){
							alert("删除成功");
						}else{
							alert("删除失败");
						}
						// d1.innerHTML=r;
					}
				}
				xhr.send();
			}
		</script>
	</head>
	<body>
		<input type="text" id="uid"><br>
		<button onclick="del()">删除</button>
		<!-- <div id="d1"></div> -->
	</body>
</html>
